package com.ssau.expert.core.model;

import com.ssau.expert.common.Answer;

/**
 * Author: Sergey Saiyan
 * Created: 13.09.13 22:56
 */
public class Variable {

    protected String name;

    protected String value1;
    protected int cf1 = 100;

    protected String value2;
    protected int cf2;

    protected Class clazz;

    protected boolean initialized = false;

    protected boolean target = false;

    protected Answer answer;

    @Override
    public String toString() {
        return "Variable {" +
                "name='" + name + '\'' +
                ", value1=" + value1 +
                ", clazz=" + clazz +
                ", initialized=" + initialized +
                '}';
    }

    public Class getClazz() {
        return clazz;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
    }

    public String getValue1() {
        return value1;
    }

    public void setValue1(String value1) {
        this.value1 = value1;
        this.initialized = true;
    }

    public boolean isInitialized() {
        return initialized;
    }

    public void setInitialized(boolean initialized) {
        this.initialized = initialized;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean getTarget() {
        return target;
    }

    public void setTarget(boolean target) {
        this.target = target;
    }

    public int getCf1() {
        return cf1;
    }

    public void setCf1(int cf1) {
        this.cf1 = cf1;
    }

    public String getValue2() {
        return value2;
    }

    public void setValue2(String value2) {
        this.value2 = value2;
    }

    public int getCf2() {
        return cf2;
    }

    public void setCf2(int cf2) {
        this.cf2 = cf2;
    }

    public Answer getAnswer() {
        return answer;
    }

    public void setAnswer(Answer answer) {
        this.answer = answer;
    }
}
